﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WechatPay.aspx.cs" Inherits="WeChat.JsSDK.WxPay.WechatPay" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0">
    <link href="../../css/payh5.css" rel="stylesheet" type="text/css" />
    <link href="../../css/weui.css" rel="stylesheet" type="text/css" />
<script src="../../bootstrap-3.3.5-dist/js/jquery-1.11.3.min.js" type="text/javascript"></script>
<title>余额充值</title>
 <script type="text/javascript" src="../../Script/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="../../Script/jquery.timers-1.2.js"></script>
    <script src="../../layer/layer.js"></script>
<script type="text/javascript">
    $(function () {
	//$('body').everyTime('1s', function () {
	//    $.ajax({
	//	async: true,
	//	url: "../../Successfulpayment.ashx",
	//	data: {},
	//	type: "post",
	//	success(data) {
	//	    if (data == "1") {
	//		location.href = "../../UserInfo/RechargeRecords.aspx";
	//	    }
	//	}
	//    });
	//});

    });


         



  



    window.onload = function () {
	//layer.msg("暂未开放", { icon: 5 });
	var aA = document.getElementById("inp").getElementsByTagName("li");
	var aLi = document.getElementById("ali");
	var inNum = document.getElementById("inNum");

	inNum.onkeyup = function () {
	    this.value = this.value.replace(/\D/g, '');
	    aLi.innerHTML = "￥" + this.value;
	    $("#selVal").val(this.value);
	}
	for (var i = 0; i < aA.length; i++) {
	    aA[i].index = i;
	    aA[i].onclick = function () {
		for (var i = 0; i < aA.length; i++) {
		    aA[i].className = "";
		}
		this.className = "current"
		aLi.innerHTML = '￥' + this.innerHTML.replace(/\D/g, '');
		$("#selVal").val(this.innerHTML.replace(/\D/g, ''));
	    };
	};

	//  var oBtn=document.getElementById("btn1")
	//  oBtn.onclick=function()
	//  {
	//    this.style.background="#6CE26C"
	//  };
	// oBtn.onmouseout=function()
	//  {
	//	  this.style.background=" #04be02";
	//  };	  		

    };
    function check() {
	if ($("#ali").text() == "￥") {
	    $("#dialog").show();
	    return false;
	} else {
	    return true;
	}
    }
</script>
</head>


<body>
<form id="Form1" runat="server">
<div class="bodywrap">
    <div class="top">
        <h1><span>余额充值</span></h1>
	<a href='../../index.html'  style="width:auto; display:none; position: absolute;  left:260px; top:55px; align-content:center; color:#fff; background-color:#04be02;border: 1px solid #04be02;" class="btn btn-default dropdown-toggle" <%--data-toggle="dropdown" onclick='javascript :history.back(-1);'--%>>返回首页</a>
    </div>
    <div style="display:none;">
    	<asp:TextBox  ID="textBox8" runat="server" Visible="False"></asp:TextBox>
 <select name="bmmc" id="bmmc"  style="width:70%;height:47px;">
<%--    <option value="">请选择支付类型</option>--%>


  <option value="2">微信</option>     <%-- 
      <option value="1">支付宝</option> 
   <option value="3">百度</option>
    <option value="4">易支付</option>
    <option value="5">支付宝ISV2</option>
    <option value="6">京东</option>
    <option value="7">QQ</option>
    <option value="8">翼支付</option>--%>
    </select>
    </div>
    <div class="qxz">
        <label>请选择充值金额：</label>
    </div>
    <div class="inputbox">
        <div class="inp" id="inp">
            <ul>
                <li><a href="javascript:;" ><span>10元</span></a></li>
                <li><a href="javascript:;"><span>20元</span></a></li>
                <li><a href="javascript:;"><span>50元</span></a></li>


               <%-- <li><a href="javascript:;" ><span><asp:Label ID="czjea" runat="server"></asp:Label></span>元</a></li>
                <li><a href="javascript:;"><span><asp:Label ID="czjeb" runat="server"></asp:Label></span>元</a></li>
                <li><a href="javascript:;"><span><asp:Label ID="czjec" runat="server"></asp:Label></span>元</a></li>--%>

<%--                <p>赠送<span><asp:Label ID="zsje1" runat="server"></asp:Label></span>元</p>
                <p>赠送<span><asp:Label ID="zsje2" runat="server"></asp:Label></span>元</p>
                <p>赠送<span><asp:Label ID="zsje3" runat="server"></asp:Label></span>元</p>
                <p>赠送<span><asp:Label ID="zsje4" runat="server"></asp:Label></span>元</p>
                <p>赠送<span><asp:Label ID="zsje5" runat="server"></asp:Label></span>元</p>--%>

                <li class="current" ><a href="javascript:;"><span>100元</span></a></li>
                <li><a href="javascript:;"><span>200元</span></a></li>


                <%-- <li class="current" ><a href="javascript:;"><span><asp:Label ID="czjed" runat="server"></asp:Label></span>元</a></li>
                <li><a href="javascript:;"><span><asp:Label ID="czjee" runat="server"></asp:Label></span>元</a></li>--%>


                <li><input id="inNum" type="tel"  value="" maxlength="5" autocomplete="off" placeholder="自定义金额" /></li>
            </ul>
        </div>
    </div>
    <div class="sj" id="sj">
        <ul>
            <li style="display:block">应付金额:<span id="ali">￥100</span></li>
        </ul>
    </div>
    <div id="Div1" class="tj">
        <asp:Button ID="btn1" runat="server" Text="点此充值" CssClass="weui_btn weui_btn_primary" OnClick="btn1_Click" OnClientClick="return check()"  />
    </div>
    <input id="selVal" name="selVal" type="hidden" value="100" />
</div>
<div class="weui_dialog_alert" id="dialog" style="display: none;">
    <div class="weui_mask"></div>
    <div class="weui_dialog">
        <div class="weui_dialog_hd"><strong class="weui_dialog_title">提示</strong></div>
        <div class="weui_dialog_bd">请选择充值金额！</div>
        <div class="weui_dialog_ft">
            <a id="A1" href="javascript:$('#dialog').hide();" class="weui_btn_dialog- primary">关闭</a>
        </div>
    </div>
</div>
</form>
</body>
</html>